<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>		
				<a href="newAnnouncement" class="btn btn-primary">新建公告</a>		
			<!--第一部分内容  -->
			<div class="row">
				<div class="col-xs-12">
					<div class="box">
						<div class="box-content no-padding">
							<table
								class="table table-bordered table-striped table-hover table-heading table-datatable"
								id="datatable-1">
								<thead>
									<tr>
										<th>#</th>
										<th>标题</th>
										<th>内容</th>
										<th>创建者</th>
										<th>发布部门</th>
										<th>创建时间</th>							
									</tr>
								</thead>
								<tbody>		
								<% int index=0; %>
								<c:forEach var="paper" items="${announcements}">
								<%index++;%>
								<tr>
									<th><%=index%></th>
									<th><a href="paperDetailApprove?id=${paper.id}">${paper.title}</a></th>
									<th>${paper.content}</th>
									<th>${paper.creator}</th>
									<th>${paper.department}</th>
									<th>${paper.createTime}</th>
									</tr>
								</c:forEach>															
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
			<!-- 第一部分内容 -->
<script>
$(function(){
	$("#announcement").addClass("active");
	$("#announcement").addClass("active-parent");
	$("#announcement ul li:nth-child(3)").addClass("active");
	$("#announcement").find("ul").show();
})
</script>